package fei.typhoon.engine.math;

public class FeiMath {
	public static int floatToInt(float f) {
		int x = (int) f;
		float r = f - (float) x;
		if (r >= 0.5) {
			x += 1;
		}
		return x;
	}
}
